#ifndef _CMAP_H_
#define _CMAP_H_

#include <windows.h>

#define TILE_GRASS	0
#define TILE_DIRT	1
#define TILE_ROCK	2
#define TILE_WATER	3

#define TILE_RES1	4
#define TILE_RES2	5

#define TILE_START1	6
#define TILE_START2	7
#define TILE_START3	8
#define TILE_START4	9

#define MAP_VISX	25
#define MAP_VISY	15


class CMap
{
private:
	HBITMAP bmp_tiles[4];
	char *mapData;
	int mapW, mapH;
public:
	CMap(char *path);
	void paint(HDC dc, int px, int py);
	int getTile(int x, int y);
	int getWidth();
	int getHeight();
};
#endif //_CMAP_H_